<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="wangyuguo">
		<title>选择订单</title>
		<script type="text/javascript" src="../script/common.js"></script>
	
		<script type="text/javascript">
			var qt = null;
			function load() {
				Eui.initBeginDateInput("beginDateTd","创建日期开始","searchForm","startDate","endDate","date");
				Eui.initEndDateInput("endDateTd","创建日期结束","searchForm","startDate","endDate","date");
				var orgId = getPara("orgId")
				if (!orgId) orgId = Common.cOrg().id;
				createTable();
				qt.showTable();
			}
	
			/**查询部分**/
			//生成表格，创建QueryTable对象
			function createTable() {
				var columns = [
					{type:"radio"},													//单选框
					{title:"订单编号",width:"21%"}
				]
				qt = new QueryTable("sel_order_list", "searchForm", "datalist", columns);
			}
	
			function onSave() {
				var obj = qt.getRadioValue(true);
				if (!obj){
					showWarning("请选订购单！");return;
				}
				var v = {id : obj[0],
					name : obj[1]
				}
				dialogBackValue(v);
			}
	
		</script>
	</head>
	<body class="body" onload="load()">
		<div id="listview">
			<!--查询条件form-->
			<div class="searchForm">
				<form id="searchForm" name="searchForm">
					<input type="hidden" name="organization" id="organization">
					<table cellSpacing="0" cellPadding="4" width="100%" border="0">
						<tr>
							<td>
								<label>销售人员</label>
								<input type="text" name="salesoper" maxlength="20">
							</td>
							<td>
								<label>客户姓名</label>
								<input type="text" name="customer" maxlength="20" >
							</td>
							
						</tr>
						<tr>
							<td id="beginDateTd"></td>
							<td id="endDateTd"></td>
							<td><button type="button" onclick="qt.showTable()">查 询</button></td>
						</tr>
					</table>
				</form>
			</div>
			<div id="datalist"></div>
		</div>
	</body>
</html>
